package com.itheima.App;

import com.itheima.dao.UserDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class app2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao userDao = (UserDao) ca.getBean("UserDao");
        userDao.save();

    }
}
